package com.zsrt.java.ex;

import java.util.ArrayList;
import java.util.Iterator;

import org.junit.Test;

public class TestEmp {
	
	@Test
	public void testName() throws Exception {
		
		EmpDao dao=new EmpDao();
		ArrayList list=dao.FindAllEmp();
		for(Iterator iterator=list.iterator();iterator.hasNext();){
			Emp e = (Emp) iterator.next();
			System.out.println(e.getEid()+e.getEname()+e.getSex()+e.getAge());
			
		}
			
	}

}
